package converter.core;

import converter.core.xml.Converter;

import java.io.File;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Snark
 * Date: 31.03.13
 * Time: 16:30
 * To change this template use File | Settings | File Templates.
 */
public class Core {

    private static Core instance;

    private Core() {

    }

    public static Core get() {
        if (instance == null) {
            instance =  new Core();
        }
        return instance;
    }

    public void convert(List<File> fileList) {
        try {
            for (File file : fileList) {
                Converter converter = new Converter(file);
                converter.convert();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
